import request from '@/utils/request'
export default {
  //1 获取章节和小结
  getChapterAndVideo(courseId) {
    return request({
      url: `/eduservice/chapter/getChapterAndVideo/${courseId}`,
      method: 'get',
    })
  },

   //1 添加章节
   saveChapter(chapter) {
    return request({
      url: `/eduservice/chapter/saveChapter`,
      method: 'post',
      data: chapter,
    })
  },
   //1 修改章节
   updateChapter(chapter) {
    return request({
      url: `/eduservice/chapter/updateChapter`,
      method: 'post',
      data: chapter
    })
  },
   //1 获取章节
   getChapter(chapterId) {
    return request({
      url: `/eduservice/chapter/getChapter/${chapterId}`,
      method: 'get',
    })
  },
   //1 删除章节
   deleteChapter(chapterId) {
    return request({
      url: `/eduservice/chapter/deleteChapter/${chapterId}`,
      method: 'delete',
    })
  }

}
